package com.ydy.remote.wechat.vo.menu;

import java.util.LinkedList;
import java.util.List;

import com.alibaba.fastjson.annotation.JSONField;

public class Menu {
	@JSONField(name = "button")
	private List<Button> button;

	public List<Button> getButton() {
		return button;
	}

	public void setButton(List<Button> button) {
		this.button = button;
	}

	public boolean add(Button subButton) {
		if (button == null) {
			button = new LinkedList<Button>();
		}
		return button.add(subButton);
	}
}
